package com.sojson.config.condition;

import com.sojson.constant.Constant;
import com.sojson.util.text.Convert;

/**
 * 是否启动定时任务
 *
 * @author liu
 * @date 2021-04-28
 */
public class TaskCondition extends MyConfigurationCondition {

    @Override
    public boolean matches() {
        return Convert.toBool(Constant.PROPERTIES.getProperty("so.task.enable"), true);
    }

}